PutObjectACL
Description
PutObjectACL interface is used to modify the access rights of Object.
Request Method
POST
Request Path
/apsara/route/OneRouter/PutObjectACL
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
x-oss-object-acl | BODY | string | Yes | private | Specify the access permission when OSS creates an object. Legal value: private: only authorized users can access the target file. public-read: all users can read the target file, and only authorized users can modify the target file. public-read-write: all users can read and write the target file. default: the ACL of the file is the same as Bucket. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}